package com.wp.design.structural.adapter.objectAdapter;

public class PowerAdapter implements Dc5v {
	private Ac220v ac220v = new Ac220v();
	public int outputDc5v() {
		int input = ac220v.intput220v();
		System.out.println("输入电压："+input +"V");
		int output = input/44;
		System.out.println("输出电压:"+output +"V");
		return output;
	}
}
